﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ACC.Data.Entities.Mes
{
    /// <summary>
    /// MES-SCADA-12 设备状态数据 SCADA to IOT to EM system
    /// </summary>
    public class WINCCEquipmentStatusReport
    {
        public string center_code;
        public string center_name;
        public string cell_code;
        public string cell_name;

        public List<WINCCEquipmentStatusDetail> detail;
    }

    /// <summary>
    /// 设备状态明细
    /// </summary>
    public class WINCCEquipmentStatusDetail
    {
        public string equip_code;
        public int equip_state;     // 1-运行（无故障），2-运行（二级故障）、3-一级故障、4-停机、5-离线、6-等待
        public string equip_state_des; // 设备状态值为2~5时，写入具体的状态描述
        public string equip_mode;      // 1-手动、2-自动、3-维修
        public DateTime autorun_stime;
        public DateTime autorun_etime;
        public DateTime equip_poweon;
        public DateTime equip_powedown;
        public DateTime mark_time;
    }
}
